<?php
use \Sy;
use \blog\libs\BHtml;
use \blog\libs\option;
use \blog\libs\BLink;
if (!class_exists('Sy')) {
	exit;
}
?>
	<footer class="page-footer">
		<div class="container">
			<div class="row">
				<div class="col l6 s12">
					<h5 class="white-text"><?=option::get('sitename')?></h5>
					<p class="grey-text text-lighten-4"><?=option::get('description')?></p>
				</div>
				<div class="col l4 offset-l2 s12">
					<h5 class="white-text">友情链接</h5>
					<ul>
						<?php
						$link = BLink::getList();
						while ($one = $link->next()) {
							echo '<li><a class="grey-text text-lighten-3" href="' . $one->url . '" rel="' . $one->rel . '">' . $one->title . '</a></li>';
						}
						?>
					</ul>
				</div>
			</div>
		</div>
		<div class="footer-copyright">
			<div class="container">
				Copyright &copy; 2015 <?=BHtml::encode(option::get('sitename'))?>. Powered by <a href="http://blog.sylingd.com" target="_blank">SYBlog</a>
				<a class="grey-text text-lighten-4 right" href="<?=Sy::createUrl('admin/home')?>">进入后台</a>
			</div>
		</div>
	</footer>
	<?=BHtml::js('@root/public/js/jquery.min.js')?>
	<?=BHtml::js('@root/public/js/materialize.min.js')?>